package com.smc.sys.web;

import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.shiro.authz.UnauthorizedException;
import org.apache.shiro.web.util.WebUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.google.common.collect.Maps;


/**
 * 登录Controller
 * 
 * @author zouqinghua
 * @date 2016年1月25日 下午7:52:59
 */
@Controller
@RequestMapping(value = "")
public class LoginSSOController extends BaseController {


    
    @RequestMapping(value = "/", method = RequestMethod.GET)
    public String index(HttpServletRequest request, HttpServletResponse response, Model model) {
     
        return "redirect:" + adminPath;
    }
    
    
    @RequestMapping(value = "${adminPath}")
    public String index(HttpServletRequest request, HttpServletResponse response) {
       
        return "modules/sys/index/sysIndex";
    }
    
    
    
  
}
